#ifndef _DLL_MANAGER_H_
#define _DLL_MANAGER_H_


class DllManager
{
private:
	int _right_dll;
	int _current_dll;
	void *_dll_handle;

	int (* DllInit)(const char *p_string, int thread_id);
	void (* DllExit)(int thread_id);

public:
	int (* Do)(int thread_id, char *buf, int *p_len);

public:
	void Init();
	int LoadDll(int thread_id);
	void UnloadDll(int thread_id);
};

#endif
